import React from "react";
import { Link } from "react-router-dom";

export default class Nav extends React.Component {
    render () {
        return (
            <div className="nav">
                <ul>
                    <li>
                        <Link to='/'>首页</Link>
                    </li>
                    <li>
                        <Link to='/news'>新闻</Link>
                    </li>
                    <li>
                        <Link to="/news/sport">体育</Link>
                    </li>
                    <li>
                        <Link to="/list/10001">列表</Link>
                    </li>
                    <li>
                        <Link to="/detail">详情</Link>
                    </li>
                </ul>
            </div>
        )
    }
}